#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
    cout<<"vvedite N>0 = ";
    int N;
    double sum = 0;
    cin>>N;
        for (int i = 1; i <= N ; i++)
        {
      sum =sum+ 1.0/i;
        }
        cout<<sum;
    return 0;
}
